﻿using mozhi.smarterp.Foundation.Enums;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;
using Volo.Abp.Application.Dtos;

namespace mozhi.smarterp.Foundation.OperationLogTemplates
{
    public class OperationLogTemplateCreateDto
    {
        [Required]
        public string Code { set; get; }

        /// <summary>
        /// 名称（对应的应该是具体的操作对象：如果供应商，客户，凭证等）
        /// </summary>
        [Required]
        public string Name { set; get; }

        public string Comment { set; get; }

        public List<OperationLogTemplateItemCreateDto> Items { set; get; }
    }

    public class OperationLogTemplateItemCreateDto 
    {
        [Required]
        public string FieldName { set; get; }

        [Required]
        public string FieldCaption { set; get; }

        /// <summary>
        /// 数据类型 1用户Id , 2供应商Id ,3 科目 4 文件 , 5会计准则 6币别
        /// </summary>
        [Required]
        public LogFieldType FieldType { set; get; }
    }
}
